<?php
/**
 * 配置文件将根据功能划分，存放在指定的目录下，并以include的方式进行加载
 */

//指定其它可用配置文件所在配置文件路径
$_available_conf_dir_s = dirname(__FILE__) . '/config_test';

$GLOBALS['gConfig'] = array(
    'open_base_url' => 'http://test.sp.snda.com/',
    'admin_base_url' => 'http://test.spadmin.snda.com/',
    'code_base_url' => 'http://test.code.snda.com/',
	'code_en_base_url' => 'http://test.en.code.snda.com/',
	'en_open_url' => 'http://test.dev.en.open.snda.com'
);
//API POOL 工作人员邮件列表
$GLOBALS['gConfig']['api_pool_admin'] = array(
	array('email'=>'liujun05@snda.com','name'=>'刘俊'), 
	array('email'=>'v.jingyinzhen@snda.com','name'=>'景银振'),
);
/*
 * 默认不开启白名单功能
 */
$GLOBALS['gConfig']['enable_whitelist']= false;

//gateway配置推送地址,这里统一配置
$GLOBALS['gConfig']['gwconfigpush'] = array('10.129.148.5:12001', '10.129.148.5:12002');

//gateway权限部分默认每个api的每分钟访问次数,每秒200次
$GLOBALS['gConfig']['gwapirate'] = 12000;

//esb数据推送节点
$GLOBALS['gConfig']['esbpushnodes'] = array('10.150.15.76:8090');
//OAuth后段
$GLOBALS['gAuth'] = array('ip'=>'58.215.39.187','port'=>'9999');
//admim密码
$GLOBALS['gAdminPWD'] = 'admin';
//监控错误码
$GLOBALS['gConfig']['monitor_errno'] = array(
	'apipool.db.access' => 65020001,
	'apipool.pushconfig' => 65020011
);
$GLOBALS['gConfig']['monitor_alert'] = false;
//mail config
$GLOBALS['gConfig']['mail_config'] = array(
	'host' => '121.14.48.194',
	'web_sender' => 'sp@snda.com',
	'admin_sender' => 'spadmin@snda.com'
);
//admin manager mail
$GLOBALS['gConfig']['manager_mail_list'] = array(
	'xucongbin@snda.com' => '徐徐',
	'liujun05@snda.com' => '俊俊',
	'chipeipei@snda.com' => '培培'
);
//监控错误号定义
define('MONITOR_ERR_PUSHCONFIG', 10000003);
//oauth接口
$GLOBALS['gConfig']['oauth_interface'] = 'http://test.api.oauth.snda.com/api';

//载入数据库配置
require_once $_available_conf_dir_s . '/dbcache.conf.php';

define('APP_APPLY_API_AUDIT_URL', 'http://test.apistore.open.snda.com/api_gateway.php');
